// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'


//引入和配置mint-ui组件库
//1.完整引入mint-ui组件库
import MintUI from 'mint-ui'
//2.单独引入mint-ui样式文件
import'mint-ui/lib/style.css'
//3.将mint-ui对象注册vue实例中
Vue.use(MintUI)
/* eslint-disable no-new */

// 5.引入第三方axios
import axios from 'axios'
// 6.配置访问服务器基础路径
axios.defaults.baseURL = 'http://127.0.0.1/3000'
// 7.保存session信息
axios.defaults.withCredentials = true
// 8.将axios注册Vue实例中 注意顺序,不能配置在vue对象后面
Vue.prototype.axios = axios


new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
